CLR2GRAY125-Jun-90

NAME clr2gray – Convert color images to grayscale SYNOPSIS clr2gray [ -r<red> -g<grn> -b<blu> ] [ -<type> ] < color > gray DESCRIPTION

Converts a color image (8bit or 24bit) to an 8 bit grayscale image. It works for both mapped and unmapped color inputs. OPTIONS
\begin{TPlist}{{\bf -r$<$num$>$,}{\rm -g$<$num$>$,}{\bf -b$<$num$>$}
}
\item[{{\...
...m[{{\bf -S}
}]
{\it sun,}
Sun rasterfiles (not run length encoded).
\end{TPlist}
EXAMPLE

To convert a mapped color image in FBM format to a Sun format grayscale image:


% clr2gray -S < foo.fbm > foo.8bit


To extract the red color plane from an image and write the result in FBM format:


% clr2gray -r1 -F < foo.fbm > red.fbm


Note that since the green and blue weights were not specified, they defaulted to 0, and the result is that only the red plane is used. SEE ALSO fbm(1) for general discussion, pbm(1) for PBM routines. BUGS None known. HISTORY Copyright (C) 1989,1990 by Michael Mauldin. Permission is granted to use this file in whole or in part for any purpose, educational, recreational or commercial, provided that this copyright notice is retained unchanged. This software is available to all free of charge by anonymous FTP and in the UUNET archives.
\begin{TPlist}{25-Jun-90 Michael Mauldin at Carnegie Mellon University}
\item[{2...
...negie Mellon University}]
Beta release (version 0.9) mlm@cs.cmu.edu
\end{TPlist}